<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编写map函数</title>
</head>

<body>

</body>
<script>

    var arr = [10, 100, 1000];
    
    function map(item) {
        let newArr = [];
        for (let i = 0; i < item.length; i++) {
            newArr.push(item[i] * 1.3);
        }
        return newArr;
    }

    console.log(map(arr));
</script>

</html>